//
//  BulletNode.cpp
//  airfight
//
//  Created by USER on 12-9-13.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#include "BulletNode.h"

BulletNode::BulletNode()
:m_pFrequency(0)
,m_pGroup_num(0)
,m_pGroup_interval(0)
,m_pBegin(0)
{
    m_pBulltes = CCArray::create();
    m_pBulltes->retain();    
}

void BulletNode::addBullets(BulletSprite *p_bullet)
{
    m_pBulltes->addObject(p_bullet);
}

CCArray* BulletNode::getBulltes()
{
    return m_pBulltes;
}

void BulletNode::setBulltes(CCArray *p_bullets)
{
    CC_SAFE_RETAIN(p_bullets);
    CC_SAFE_RELEASE(m_pBulltes);
    m_pBulltes = p_bullets;
}

BulletNode::~BulletNode()
{
    CC_SAFE_RELEASE(m_pBulltes);
}